package sjtu.ist.warehouse4ws.model;

import java.sql.Timestamp;

/**
 * Oplog entity. @author MyEclipse Persistence Tools
 */

public class Oplog implements java.io.Serializable {

	public static String read="readop";
	public static String upload="uploadop";
	public static String download="downloadop";
	
	// Fields

	private int id;
	private Timestamp timestamp;
	private String user;
	private String operation;
	private String groupId;
	private String discription;

	// Constructors

	/** default constructor */
	public Oplog() {
	}

	/** minimal constructor */
	public Oplog(Timestamp timestamp) {
		this.timestamp = timestamp;
	}

	/** full constructor */
	public Oplog(Timestamp timestamp, String user, String operation,
			String groupId, String discription) {
		this.timestamp = timestamp;
		this.user = user;
		this.operation = operation;
		this.groupId = groupId;
		this.discription = discription;
	}

	// Property accessors

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Timestamp getTimestamp() {
		return this.timestamp;
	}

	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}

	public String getUser() {
		return this.user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getOperation() {
		return this.operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getDiscription() {
		return this.discription;
	}

	public void setDiscription(String discription) {
		this.discription = discription;
	}

}